import request from '@/utils/request'

// 查询车辆保养记录列表
export function listManagerecord(query) {
  return request({
    url: '/managerecord/managerecord/list',
    method: 'get',
    params: query
  })
}

// 查询车辆保养记录详细
export function getManagerecord(id) {
  return request({
    url: '/managerecord/managerecord/' + id,
    method: 'get'
  })
}

// 新增车辆保养记录
export function addManagerecord(data) {
  return request({
    url: '/managerecord/managerecord',
    method: 'post',
    data: data
  })
}

// 修改车辆保养记录
export function updateManagerecord(data) {
  return request({
    url: '/managerecord/managerecord',
    method: 'put',
    data: data
  })
}

// 删除车辆保养记录
export function delManagerecord(id) {
  return request({
    url: '/managerecord/managerecord/' + id,
    method: 'delete'
  })
}
